import { http } from '@/utils/http'

export function useInvoiceApi(){
  return {
    getInvoiceApplication(id: string) {
      return http.get<InvoiceApplyForm>('/prod-api/admin-api/project/invoice-application/get?id=' + id)
    },
    getIAByProcessInstanceId(processInstanceId: string) {
      return http.get<InvoiceApplyForm>('/prod-api/admin-api/project/invoice-application/getByProcessInstanceId?processInstanceId=' + processInstanceId)
    },
    getInvoiceApplyDoc(params: any) {
      return http.get<InvoiceApplyForm>(`/prod-api/admin-api/project/invoice-application/doc`)
    }
  }
}
